import request from '@/utils/request'
//  站点电池查询
export const getpowerlist = data => {
  return request({
    url: '/powerCabinetVo/getPowerCabinetList',
    method: 'post',
    params: data,
  })
}
// 添加
export const getpowersave = data => {
  return request({
    url: '/powerCabinetVo/getPowerCabinetsave',
    method: 'post',
    data: data,
  })
}
// 修改
export const getpowerupdate = data => {
  return request({
    url: '/powerCabinetVo/getPowerCabinetupdate',
    method: 'post',
    data: data,
  })
}
// 删除
export const getpowerdelete = id => {
  return request({
    url: '/powerCabinetVo/getPowerCabinetDelete',
    method: 'delete',
    params: { id: id },
  })
}
